﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PRO.ORM;
using System.Data;

namespace PRO.Entity
{
    [Entity(TableName = "Pro_Class")]
    public class ClassInfo : BaseEntity
    {
        private int _ID = 0;
        [EntityAttribute(SqlDbType = SqlDbType.Int, Len = 4, PrimaryKey = true)]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private int _PID;
        [EntityAttribute(SqlDbType = SqlDbType.Int, Len = 4)]
        public int PID
        {
            get { return _PID; }
            set { _PID = value; }
        }

        private string _ClassName;
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 50)]
        public string ClassName
        {
            get { return _ClassName; }
            set { _ClassName = value; }
        }
        private string _ClassDes;
        [EntityAttribute(SqlDbType = SqlDbType.NVarChar, Len = 500, NotNull = false)]
        public string ClassDes
        {
            get { return _ClassDes; }
            set { _ClassDes = value; }
        }

        private int _Sort;
        [EntityAttribute(SqlDbType = SqlDbType.Int, Len = 4, DefaultValue = 0)]
        public int Sort
        {
            get { return _Sort; }
            set { _Sort = value; }
        }
    }
}
